# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/lwt/Desktop/python-poker/ui/JoinDlg.ui'
#
# Created: Wed Aug 11 18:04:42 2010
#      by: PyQt4 UI code generator 4.7.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_JoinDialog(object):
    def setupUi(self, JoinDialog):
        JoinDialog.setObjectName("JoinDialog")
        JoinDialog.setWindowModality(QtCore.Qt.WindowModal)
        JoinDialog.resize(318, 124)
        self.gridLayout = QtGui.QGridLayout(JoinDialog)
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtGui.QLabel(JoinDialog)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.lineHost = QtGui.QLineEdit(JoinDialog)
        self.lineHost.setObjectName("lineHost")
        self.horizontalLayout.addWidget(self.lineHost)
        self.label_2 = QtGui.QLabel(JoinDialog)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout.addWidget(self.label_2)
        self.sbPort = QtGui.QSpinBox(JoinDialog)
        self.sbPort.setMinimum(1025)
        self.sbPort.setMaximum(65535)
        self.sbPort.setProperty("value", 1234)
        self.sbPort.setObjectName("sbPort")
        self.horizontalLayout.addWidget(self.sbPort)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 1, 0, 1, 1)
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setMargin(0)
        self.hboxlayout.setObjectName("hboxlayout")
        spacerItem1 = QtGui.QSpacerItem(131, 31, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.hboxlayout.addItem(spacerItem1)
        self.okButton = QtGui.QPushButton(JoinDialog)
        self.okButton.setDefault(True)
        self.okButton.setObjectName("okButton")
        self.hboxlayout.addWidget(self.okButton)
        self.cancelButton = QtGui.QPushButton(JoinDialog)
        self.cancelButton.setObjectName("cancelButton")
        self.hboxlayout.addWidget(self.cancelButton)
        self.gridLayout.addLayout(self.hboxlayout, 2, 0, 1, 1)
        self.label.setBuddy(self.lineHost)
        self.label_2.setBuddy(self.sbPort)

        self.retranslateUi(JoinDialog)
        QtCore.QObject.connect(self.okButton, QtCore.SIGNAL("clicked()"), JoinDialog.accept)
        QtCore.QObject.connect(self.cancelButton, QtCore.SIGNAL("clicked()"), JoinDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(JoinDialog)

    def retranslateUi(self, JoinDialog):
        JoinDialog.setWindowTitle(QtGui.QApplication.translate("JoinDialog", "加入游戏", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("JoinDialog", "服务器地址:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("JoinDialog", "端口:", None, QtGui.QApplication.UnicodeUTF8))
        self.okButton.setText(QtGui.QApplication.translate("JoinDialog", "确定(&O)", None, QtGui.QApplication.UnicodeUTF8))
        self.cancelButton.setText(QtGui.QApplication.translate("JoinDialog", "取消(&C)", None, QtGui.QApplication.UnicodeUTF8))


if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    JoinDialog = QtGui.QDialog()
    ui = Ui_JoinDialog()
    ui.setupUi(JoinDialog)
    JoinDialog.show()
    sys.exit(app.exec_())

